package com.rpc.center.register.client;

import com.rpc.center.register.client.netty.NettyRegisterServiceImpl;

/**
 * 注册器工厂
 */

public class CenterRegisterFactory {
    public static RPCRegisterService getRegisterInstance(String serverAddress,int port) {
        //return new SocketRegisterServiceImpl(serverAddress,port);
        return new NettyRegisterServiceImpl(serverAddress,port);
    }
}
